commonlibsse_ng\re\m\MemoryManager/alloc.rs
1//! Memory allocation functions.
2//! This module provides functions for memory allocation, deallocation, and reallocation.
3pub mod scrap_alloc;
4pub mod tes_global;
5
6#[cfg(not(feature = "test_on_ci"))]
7mod rust_api;
8
9#[cfg(not(feature = "test_on_ci"))]
10pub use self::rust_api::{alloc, alloc_zeroed, dealloc, realloc};
11#[cfg(feature = "test_on_ci")] // Since TESAllocator is not available for CI, use Rust's.
12pub use std::alloc::{alloc, alloc_zeroed, dealloc, realloc};